package com.dq.eduservice.service;

import com.dq.eduservice.entity.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dq.eduservice.entity.subject.Subject;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 课程科目(EduSubject)表服务接口
 *
 * @author Dq
 * @since 2022-07-21 15:40:38
 */
@Transactional
public interface EduSubjectService  extends IService<EduSubject> {
    /**
     * 读取excel添加subject
     * @param file
     */
    void addSubject(MultipartFile file,EduSubjectService subjectService);

    /**
     * 查询所有一、二级分类
     * @return
     */
    List<Subject> getSubjectList();
}